﻿using Furion;
using Furion.DynamicApiController;
using HiSport.Application.Text.Service;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Application.Text
{
    [AllowAnonymous]
    [ApiDescriptionSettings("测试", Tag = "测试", SplitCamelCase = false)]
    public class TextAppService: IDynamicApiController
    {

        private readonly ITestService _tsetApp;
                         


        public TextAppService()
        {
            _tsetApp = App.GetService<ITestService>();
        }

        /// <summary>
        /// CodeFirst
        /// </summary>
        /// <returns></returns>
        public async Task<bool> CodeFirst()
        {
           return await _tsetApp.CodeFirst();
        }

        public async Task<string> CodeSecond(string id)
        {
            return await _tsetApp.CodeSecond(id);
        }
    }
}
